/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package webservicetestclient;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import soapclient.CCWebService;
import soapclient.ICurrencyConverterService;

/**
 *
 * @author Mike
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws MalformedURLException {
        URL url = new URL("http://localhost:8080/Service.svc?wsdl");
        CCWebService serviceWithUrl = new CCWebService(url, new QName("http://tempuri.org/", "CCWebService"));
        ICurrencyConverterService service = serviceWithUrl.getBasicHttpBindingICurrencyConverterService();
        System.out.println(service.calculate("EUR", "USD", 100.0f));
        
    }

}
